import React from 'react';
import logo from './logo.svg';
import './App.css';

function App() {
  const [count, setCount] = React.useState(0);
  return (
    <div className="App">
      <div className="icon-star">learn react</div>
      <div test-id={'count-value'}>{count}</div>
      <button test-id={'click-add'} onClick={() => setCount(val => val+1)}>add</button>
    </div>
  );
}

export default App;
